import { _decorator, Node } from 'cc';
import { UIComponent } from '../../Framework/Scripts/Managers/UIComponent';
const { ccclass, property } = _decorator;

@ccclass('Edit')
export class Edit extends UIComponent {
    protected onLoad(): void {
        this.InitUI();
    }

    start() {
        this.InitData();
    }

    protected onDestroy(): void {
        this.unRegisterEvent();
    }

    private InitUI(){
        this.registerEvent();

        this.AddButtonListener('btnBack',this,this.OnBtnCloseClick);
    }

    private InitData(){
   
    }

    private registerEvent(){
        // globalThis.gameMgr._eventTarget.on(EventMsgKes.loading,this.onLoadingPro,this);
    }

    private unRegisterEvent(){
        // globalThis.gameMgr._eventTarget.off(EventMsgKes.loading,this.onLoadingPro,this);
    }
}


